/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.testis.threading;

import java.util.concurrent.Future;


/**
 *
 * @author nurhat
 */
public class TaskHolder
{

    private Future<Task> m_future;
    private Task m_task;


    public TaskHolder(Future<Task> future,
                       Task task)
    {
        m_future = future;
        m_task = task;
    }


    public void afterExecute()
    {
        m_task.afterExecute();
    }


    public String getTaskId()
    {
        return m_task.m_taskId;
    }


    public Task getTask()
    {
        return m_task;
    }


    public void setTaskId(String m_id)
    {
        this.m_task.m_taskId = m_id;
    }


    public Future<Task> getFuture()
    {
        return m_future;
    }


    public void setFuture(Future<Task> m_future)
    {
        this.m_future = m_future;
    }
}
